package com.toolbox.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @date 2023-11-20 17:52
 * @see com.toolbox.dto
 */
@Data
@ToString
@Accessors(chain = true)
@ApiModel("角色——展示数据")
public class InfraRoleDTO implements Serializable {

    private static final long serialVersionUID = -3824085443340236589L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", position = 100)
    private Long id;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称", position = 100)
    private String name;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", position = 100)
    private String description;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 100)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime gmtCreate;

}
